package com.loong.web.suppert.intercept.auth;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 无权限访问代理接口
 *
 * @author 张成轩
 */
public interface UnAuthHandler {

	/**
	 * 资源访问失败处理
	 * 
	 * @param request 请求
	 * @param response 响应
	 * @param hasUser 是否已登录
	 * @throws IOException IO异常
	 */
	public void mapping(HttpServletRequest request, HttpServletResponse response, boolean hasUser) throws IOException;

	/**
	 * 接口访问失败处理
	 * 
	 * @param request 请求
	 * @param response 响应
	 * @param hasUser 是否已登录
	 * @throws IOException IO异常
	 */
	public void api(HttpServletRequest request, HttpServletResponse response, boolean hasUser) throws IOException;
}
